﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.YiDongYuan
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2021-06-16 08:31
    /// 描 述：机械备案申报实体类
    /// </summary>
    [Table("mechanicsapply")]
    public class MechanicsApplyEntity : BaseCreateEntity
    {
        /// <summary>
        /// 所属县区
        /// </summary>
        public string Region { get; set; }

        /// <summary>
        /// 机械ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? MechanicsId { get; set; }

        [NotMapped]
        public string HuanBaoCode { get; set; }

        /// <summary>
        /// 所有人姓名
        /// </summary>
        /// <returns></returns>
        public string OwnerName { get; set; }

        /// <summary>
        /// 所有人电话
        /// </summary>
        /// <returns></returns>
        public string OwnerTel { get; set; }

        /// <summary>
        /// 所有人地址
        /// </summary>
        /// <returns></returns>
        public string OwnerAddr { get; set; }

        /// <summary>
        /// 所有人身份证号
        /// </summary>
        /// <returns></returns>
        public string OwnerCardNo { get; set; }

        /// <summary>
        /// 机械登记类型
        /// </summary>
        /// <returns></returns>
        public string JXDJLX { get; set; }

        /// <summary>
        /// 机械类别
        /// </summary>
        /// <returns></returns>
        public string JXLB { get; set; }

        /// <summary>
        /// 排放阶段
        /// </summary>
        /// <returns></returns>
        public string PFJD { get; set; }

        /// <summary>
        /// 机械照片
        /// </summary>
        /// <returns></returns>
        public string JX1_pic { get; set; }

        /// <summary>
        /// 身份证照片
        /// </summary>
        /// <returns></returns>
        public string OwnerCard_pic { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        /// <returns></returns>
        public int? AuditStatus { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? AuditUserId { get; set; }

        /// <summary>
        /// 审核人姓名
        /// </summary>
        [NotMapped]
        public string AuditUserName { get; set; }

        /// <summary>
        /// 审核原因
        /// </summary>
        public string AuditReason { get; set; }
    }
}
